<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <div class="map"></div>

        <button class="start">开始</button>
        <button class="stop">停止</button>

        <script src="./demo-map.js"></script>
        <script src="./demo-game.js"></script>
        <script src="./demo-food.js"></script>
        <script src="./demo-snake.js"></script>
        <script>
            let g = new Game('.map')
            let start = document.querySelector('.start')
            start.addEventListener('click', () => g.start())
            let stop = document.querySelector('.stop')
            stop.addEventListener('click', () => g.stop())
            </script>
    </body>
</html>